<template>
  <WriteboxIndex
    :type="type"
    :currentRecord="currentRecordTransmit"
    @handle-return="handleReturn"
  />
</template>
<script lang="ts" setup>
  import { ref, nextTick, onMounted } from 'vue';
  import WriteboxIndex from './index.vue';

  const props = defineProps({
    type: {
      type: String,
      default: 'transmit',
    },
    currentRecordTransmit: {
      type: Object,
      default: () => {
        return {};
      },
    },
  });
  const emit = defineEmits(['handle-return']);

  const init = () => {
    nextTick(async () => {});
  };

  // onMounted(init);

  const handleReturn = () => {
    emit('handle-return');
  };
</script>

<style lang="less" scoped></style>
